<template>
	<view class="content">
		<swiper class="appointment-swiper" autoplay="false">
			<swiper-item>
				<image class="banner-image" src="../../static/images/common/yuyue.png" mode="aspectFit"></image>
			</swiper-item>
		</swiper>
		<view class="letter">楼盘名称</view>
		<view class="input-box"><input class="input" type="text" placeholder="****" /></view>
		<view class="letter">预约类型</view>
		<picker @change="pick($event)" mode='selector' :value="index" :range="list">
			<view class="input-box">
				<view class="input">
					{{list[index]}}
				</view>
				<image class="image" src="../../static/images/icon/right_icon.png"></image>
			</view>
		</picker>
		<view class="letter">户&emsp;&emsp;型</view>
		<view class="input-box"><input class="input" type="text" placeholder="***" />
		<text class="unit">(m²)</text></view>
		<view class="letter">姓&emsp;&emsp;名</view>
		<view class="input-box"><input class="input" type="text" placeholder="**" /></view>
		<view class="letter">联系方式</view>
		<view class="input-box"><input class="input" type="text" placeholder="***********" />
		</view>
		<view class="letter">微信号码</view>
		<view class="input-box"><input class="input" type="text" placeholder="***********" />
		</view>
		<view class="contents">
			<button class="button-text" type="primary">确定预约</button>
		</view>

	</view>
</template>
<script>
	export default {
			data() {
				return {
				list: ['验房', '微改报价', '设计', '拎包入住'],
				index:0,
							}
						},
						methods:{
							pick(e){
								this.index = e.target.value;
							}
						}
				}
</script>
<style>
	.unit{
		position: absolute;
		opacity: 0.2;
		right: 8rpx;
		top: 0;
		bottom: 0;
		margin:auto;
		font-weight: 700;
		font-size: 30rpx;
	}
	.image{
		position: absolute;
		opacity: 0.2;
		right: 8rpx;
		width: 32rpx;
		height: 32rpx;
		top: 0;
		bottom: 0;
		margin:auto;
	}
	.contents {
		width: 100vw;
		height: 30vw;
		background-color: #F5F5F5;
		box-sizing: border-box; //盒子模型
	}

	.button-text {
		position: relative;
		left: 10rpx;
		top: 64rpx;
		width: 328rpx;
		height: 80rpx;
		background: #3d9c36;
		border-radius: 8rpx;
	}

	.letter {
		position: relative;
		left: 100rpx;
		top: 64rpx;
		width: 112rpx;
		height: 40rpx;
		font-size: 28rpx;
		font-weight: 500;
		text-align: CENTER;
		color: #666666;
		line-height: 28rpx;
	}

	.input-box {
		position: relative;
		left: 230rpx;
		top: 18rpx;
		width: 486rpx;
		height: 60rpx;
		background: #ffffff;
		border: 2rpx solid rgba(0, 0, 0, 0.10);
		border-radius: 8rpx;
	}

	.input {
		position: relative;
		left: 29rpx;
		top: 8rpx;
		font-size: 24rpx;
		font-weight: 700;
		color: #333333;
		line-height: 24rpx;
	}

	.content {
		width: 100vw;
		height: 100vh;
		background-color: #F5F5F5;
		box-sizing: border-box; //盒子模型
	}

	.banner-image {
		width: 100%;
		height: 100%;
	}

	.appointment-swiper {
		width: 100%;
		height: 450rpx;
	}
</style>
